import request from '@/utils/request'

// 查询服务详情列表
export function listServiceDetails(query) {
  return request({
    url: '/carService/serviceDetails/list',
    method: 'get',
    params: query
  })
}

// 查询服务详情详细
export function getServiceDetails(serviceDetailsId) {
  return request({
    url: '/carService/serviceDetails/' + serviceDetailsId,
    method: 'get'
  })
}

// 新增服务详情
export function addServiceDetails(data) {
  return request({
    url: '/carService/serviceDetails',
    method: 'post',
    data: data
  })
}

// 修改服务详情
export function updateServiceDetails(data) {
  return request({
    url: '/carService/serviceDetails',
    method: 'put',
    data: data
  })
}

// 删除服务详情
export function delServiceDetails(serviceDetailsId) {
  return request({
    url: '/carService/serviceDetails/' + serviceDetailsId,
    method: 'delete'
  })
}
